﻿using System.ComponentModel.DataAnnotations;

namespace Entity.Finance.DTO.DailyReimburse
{
    /// <summary>
    /// 日常报销单模型 - 更新
    /// </summary>
    public class DailyReimburseUpdateDTO
    {
        /// <summary>
        /// 报销单Id
        /// </summary>
        [Required(ErrorMessage = "报销Id不能为空")]
        public string Id { get; set; }

        /// <summary>
        /// 报销编码
        /// </summary>
        [Required(ErrorMessage = "报销编码Code不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 报销人 ID
        /// </summary>
        [Required(ErrorMessage = "报销人StaffId不能为空")]
        public string StaffId { get; set; }

        /// <summary>
        /// 报销时间
        /// </summary>
        [Required(ErrorMessage = "报销时间ReimburseTime不能为空")]
        public DateTime ReimburseTime { get; set; }

        /// <summary>
        /// 审核不通过理由
        /// </summary>
        public string? UnPassRemark { get; set; }

        /// <summary>
        /// 报销金额
        /// </summary>
        [Required(ErrorMessage = "报销金额Amount不能为空")]
        public decimal Amount { get; set; }

        /// <summary>
        /// 报销内容
        /// </summary>
        [Required(ErrorMessage = "报销内容Content不能为空")]
        public string Content { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public string? File { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
